<?php
	error_reporting(E_ERROR | E_WARNING | E_PARSE);
	ini_set('display_errors', '1');

	session_start();
	include_once("config.php");
	if (isset($_SESSION['accessType']) && $_SESSION['accessType'] != "") {
		if (!(isset($_SESSION['user']) && isset($_SESSION['pw'])) ) {
			header('Location: index.php');
			exit();
		}
	} else {
		header('Location: index.php');
		exit();
	}
?>
<html>
<head>
<title>Data Entry</title>
<link rel="stylesheet" type="text/css" href="http://extjs.cachefly.net/ext-3.3.1/resources/css/ext-all.css" />
<link rel="stylesheet" type="text/css" href="resources/css/style.css" />
</head>

<body>
	<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.3.1/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="http://extjs.cachefly.net/ext-3.3.1/ext-all.js"></script>
	<script type="text/javascript" src="resources/ext/TwinComboBox.js"></script>

	<script type="text/javascript" src="resources/js/states.js"></script>
	<script type="text/javascript" src="resources/js/SpeciesObservation.notice.js"></script>
	<script type="text/javascript" src="resources/js/SpeciesObservation.speciesForm.js"></script>
	<script type="text/javascript" src="resources/js/SpeciesObservation.speciesEntry.js"></script>
	<script type="text/javascript" src="config.js"></script>
<script>
	Ext.onReady(function(){
		Ext.QuickTips.init();
		Ext.fly(document.body).on('contextmenu', function(e, target) {
			e.preventDefault();
		});
		var myForm = new SpeciesObservation.speciesEntry();
	});
  </script>
  <iframe id="download" src="" style="visibility:hidden"></iframe>
</body>
</html>